﻿
@{
    ViewData["Title"] = "出库";
}


@section scripts{
    <environment names="Development">
        <script src="~/view-resources/Views/OutStock/Index.js" asp-append-version="true"></script>
    </environment>
}

<style>
    #out-stock-fm td {
        padding: 10px;
    }
</style>

<div id="toolbar">
    <a href="#" id="btn-new-out-stock" class="easyui-linkbutton" iconCls="icon-add" plain="true">新建出库单</a>
</div>
<!-- datagrid数据表格 -->
<table id="out-stock-index-main-grid"></table>




<!-- 添加货物弹出对话框 -->
<div id="out-stock-index-dlg" class="easyui-dialog" style="width:960px;height:480px;padding:10px 20px"
     closed="true" buttons="#dlg-buttons">
    <div class="ftitle">货物信息</div>
    <form id="out-stock-fm" method="post">
        <div>
            <input type="hidden" name="id" />
        </div>
        <table border="0">
            <tr>
                <td>
                    <div class="fitem">
                        <label>出库单号:</label>
                        <input name="outStockCode" class="easyui-textbox easyui-validatebox" required="true">

                    </div>
                </td>
                <td>
                    <div class="fitem">
                        <label>客户　:　</label>
                        <input id="customer" name="customerId" required="true">

                    </div>
                </td>

            </tr>
            <tr>
                <td>
                    <div class="fitem">
                        <label>操作人:　</label>
                        <input type="hidden" id="op_user_id" name="user">
                        <input id="op_user" name="operatingUser" disabled class="easyui-validatebox" required="true">
                    </div>
                </td>

                <td>
                    <div class="fitem">
                        <label>总金额:　</label>
                        <input id="totalAmount" name="totalAmount" class="easyui-validatebox" type="number" disabled>
                    </div>
                </td>
            </tr>
        </table>

        <div id="sub-toolbar">
            <a href="#" id="btn-append-goods-out-stock" class="easyui-linkbutton" iconCls="icon-add" plain="true">追加货物</a>
            <a href="#" id="btn-del-goods-out-stock" class="easyui-linkbutton" iconCls="icon-add" plain="true">删除货物</a>
        </div>

        <!-- datagrid数据表格 -->
        <table id="out-stock-index-sub-grid"></table>
    </form>
</div>

<div id="dlg-buttons">
    <a href="#" id="btn-finish-edit-out-stock" class="easyui-linkbutton">完成编辑</a>
    <a href="#" id="btn-submit-out-stock" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#out-stock-index-dlg').dialog('close')">取消</a>
</div>


<!-- 选择货物的对话框 -->
<div id="out-stock-add-goods-dlg" class="easyui-dialog" style="width:800px;height:480px;padding:10px 20px"
     closed="true" buttons="#dlg-append-goods-buttons">
    <!-- datagrid数据表格 -->
    <table id="out-stock-append-goods-grid"></table>
</div>

<div id="dlg-append-goods-buttons">
    <a href="#" id="btn-save-goods-append" class="easyui-linkbutton" iconCls="icon-ok">保存追加</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#out-stock-add-goods-dlg').dialog('close')">取消</a>
</div>

